home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C/C++ Users Group Library 1996 July
/
C-C++ Users Group Library July 1996.iso
/
listings
/
v_12_05
/
plauger
/
rdbuf.c
< prev
next >
Wrap
C/C++ Source or Header
|
1994-03-08
|
295b
|
16 lines
----------- Listing 6: The function ios::rdbuf(streambuf *) -----------
// iosrdbuf -- ios::rdbuf(streambuf *)
#include <ios>
streambuf *ios::rdbuf(streambuf *nb)
{ // set new streambuf
streambuf *ob = _Sb;
_Sb = nb;
clear(goodbit);
return (ob);
}